<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>规则管理</title>
<script type="text/javascript" src="../scripts/itsm/system/ruleMain.js"></script>
</head>
<body>
<div id="ruleMainGridToolbar" style="padding: 0px;display: none;">
&nbsp;<a onclick="itsm.system.ruleMain.openAddWin()" class="easyui-linkbutton" id="ruleMainGrid_add" icon="icon-add" plain="true">添加</a>
<a onclick="itsm.system.ruleMain.openEditWin()" class="easyui-linkbutton" id="ruleMainGrid_edit" icon="icon-edit" plain="true">修改</a>
<a onclick="itsm.system.ruleMain.deleteRule()" class="easyui-linkbutton" id="ruleMainGrid_del" icon="icon-cancel" plain="true">删除</a>
<a onclick="itsm.system.ruleMain.openSearchWin()" class="easyui-linkbutton" id="ruleMainGrid_search" icon="icon-search" plain="true">搜索</a>
</div>
<table id='ruleMainGrid'></table>
<div id='ruleMainPager'></div>

<%-- 添加、编辑 --%>
<div title="添加/编辑规则 " id="ruleMain_add_win" class="easyui-window" closed="true" collapsible="false" modal="true" minimizable="false" maximizable="false" collapsible="false" style="width:400px; height:auto;padding:3px">
	<form id="ruleMain_add_form">	
	<input name="ruleDTO.ruleId" id="ruleMain_ruleId" type="hidden" />
	<table>
		<tr>
			<td>规则名称</td>
			<td><input name="ruleDTO.ruleName" id="ruleMain_ruleName" /></td>
		</tr>
		<tr>
			<td>规则编码</td>
			<td><input name="ruleDTO.ruleCode" id="ruleMain_ruleCode"/></td>
		</tr>
		<tr>
			<td>规则值</td>
			<td><input name="ruleDTO.ruleValue" id="ruleMain_ruleValue"/></td>
		</tr>
		<tr>
			<td>备注</td>
			<td><textarea style="width: 300px;height: 80px;" name="ruleDTO.remark" id="ruleMain_remark"></textarea></td>
		</tr>
		<tr>
			<td colspan="2">
				<a class="easyui-linkbutton" icon="icon-save" href="javascript:itsm.system.ruleMain.saveRule()">保存</a>
			</td>
		</tr>
	</table>
	</form>
</div>

<%-- 搜索  --%>
<div title="规则搜索 " id="ruleMain_search_win" class="easyui-window" closed="true" collapsible="false" modal="false" minimizable="false" maximizable="false" collapsible="false" style="width:400px; height:auto;padding:3px">
	<form id="ruleMain_search_form">	
	<table>
		<tr>
			<td>规则名称</td>
			<td><input name="ruleDTO.ruleName" class="input" /></td>
		</tr>
		<tr>
			<td>规则代码</td>
			<td><input name="ruleDTO.ruleCode" class="input" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<a class="easyui-linkbutton" icon="icon-save" href="javascript:itsm.system.ruleMain.searchRule()">搜索</a>
			</td>
		</tr>
	</table>
	</form>
</div>


</body>
</html>